package com.medium.house.request;

import com.medium.house.enums.BasicStatusEnum;
import com.medium.house.enums.HouseTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Digits;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author : wang.yu
 * @Description :
 * @Date: Created in 2018/1/31 0031  10:40
 * @Modified By
 */
@ApiModel(value="HouseInfo对象",description="房源对象")
@Data
public class HouseInfoRequestDto implements Serializable {

    @ApiModelProperty(value="用户唯一标志",name="openid",example="001")
    @NotBlank(message = "用户标志不能为空")
    private String openid;

    @ApiModelProperty(value="标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value="建造年代")
    @NotBlank(message = "建造年代不能为空")
    private String constructYears;

    @ApiModelProperty(value="房屋类型")
    @NotBlank(message = "请选择房屋类型")
    private String houseType;

    @ApiModelProperty(value="楼层")
    @NotBlank(message = "请选择楼层")
    private String floor;

    @ApiModelProperty(value="朝向")
    @NotBlank(message = "请选择朝向")
    private String orientation;

    @ApiModelProperty(value="装修")
    @NotBlank(message = "请选择装修情况")
    private String renovation;

    @ApiModelProperty(value="布局")
    private int apartmentLayout;

    @ApiModelProperty(value="区域")
    @NotBlank(message = "请录入区域")
    private String region;

    @ApiModelProperty(value="小区名称")
    @NotBlank(message = "请录入小区名称")
    private String communityName;

    @ApiModelProperty(value="期望售价")
    @NotBlank(message = "请录入期望售价")
    private String sellPrice;

    @ApiModelProperty(value="房屋面积")
    @Digits(integer=100000, fraction=2,message = "请录入期望售价")
    private BigDecimal area;

    @ApiModelProperty(value="详细地址")
    @NotBlank(message = "请录入详细地址")
    private String address;

    @ApiModelProperty(value="房屋特色")
    @NotBlank(message = "请录入房屋特色")
    private String sellPoint;


    /*@ApiModelProperty(value="房屋特色")
    @NotBlank(message = "请录入房屋特色")
    private String[] sellPoint;*/

    @ApiModelProperty(value="房屋描述")
    @NotBlank(message = "请录入房屋描述信息")
    private String depict;

    @ApiModelProperty(value="联系人姓名")
    @NotBlank(message = "请录入联系人姓名")
    private String contacts;

    @ApiModelProperty(value="联系人手机号码")
    @NotBlank(message = "请录入联系人手机号码")
    private String mobile;

    @ApiModelProperty(value="联系人手机号码")
    private int type;

    @ApiModelProperty(value="出租房必填 1_整租 2_合租")
    private String lease;

    @ApiModelProperty(value="备注")
    private String remark;
}
